package com.example.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.domain.Review;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.domain.model.RatingDTO;
import com.example.domain.model.ReviewDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
* @author Administrator
* @description 针对表【review】的数据库操作Mapper
* @createDate 2023-03-20 09:46:32
* @Entity com.example.entity.Review
*/
@Mapper
public interface ReviewMapper extends BaseMapper<Review> {
    IPage<ReviewDTO> selectPage(Page page, @Param("userId") String userId);

    IPage<ReviewDTO> selectByMovieIdPage(Page page,@Param("movieId")String movieId);

}




